﻿using SYJ.BLL;
using SYJ.Filter;
using SYJ.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using System.Web.Script.Serialization;

namespace SYJ.Logic.Controllers.admin
{
    /// <summary>
    /// 后台管理
    /// </summary>
   public class DefaultController:BaseController
    {
       SysPermissionBLL bll = new SysPermissionBLL();
       public ActionResult Index()
       {
           return View();
       }

       public ActionResult GetMenu() {

           if (AppContext.Current.Permissions.Count > 0)
           {
               JavaScriptSerializer serializer = new JavaScriptSerializer();
               return Json(AppContext.Current.Permissions);
           }
           return null;
       }
    }
}
